<form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="title" class="control-label col-xs-12 col-sm-2">{:__('Cmd')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="title" name="row[title]" value="{$row.title}" data-rule="required;title" />
            
        </div>
    </div>
    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" id="message" name="row[message]" rows="8" cols="80">{$row.message}</textarea>
        </div>
    </div>


    <!-- <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button id="plupload-local" class="btn btn-primary plupload" data-input-id="c-local" data-url="{:url('ajax/upload')}"><i class="fa fa-upload"></i> {:__("Upload to local")}</button>
        </div>
    </div> -->

    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

<script id="content_list_tpl" type="text/html">

    <div class="content-item">
        <div class="pull-right box-tools">
            <button type="button" class="btn btn-info btn-sm content-item-remove" data-widget="remove" data-toggle="tooltip" title="Remove" data-original-title="Remove">
            <i class="fa fa-times"></i></button>
        </div>
        <div class="form-group">
            <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
            <div class="col-xs-12 col-sm-8">
                <textarea class="form-control" id="content-<%=count%>" name="row[content][]" rows="4" cols="80" data-rule="required;content[]" ></textarea>

            </div>
        </div>

        <div class="form-group row_url" id="row_url">
            <label for="c-local" class="control-label col-xs-12 col-sm-2">{:__('Upload')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group input-groupp-md ">
                    <a href="javascript:;" id="plupload-local-<%=count%>" class="btn btn-primary plupload btn-search-icon input-group-addon"  data-input-id="c-local-<%=count%>" data-url="{:url('ajax/upload')}" style="background-color:#2c3e50;color:#fff">{:__("Upload to local")}</a>
                    <input type="text" name="row[url][]" id="c-local-<%=count%>" class="form-control" data-rule="required;url[]"/>
                </div>
            </div>
        </div>
    </div>

</script>
